package com.zjw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.zjw.annotation.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用户表(User)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-13 17:46:27
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from sys_user where user_name = #{username} and status = 0")
    User getByName(@Param("username") String username);

}
